var util = require('util')
var event = require('events')
function Player () {
  event.call(this)
}
util.inherits(Player, event)

var play = new Player()
play.on('pause', () => console.log('paused'))
play.on('play', () => console.log('play'))
play.emit('play') // paly
console.log(play.eventNames()) // [ 'pause', 'play' ]